package com.jzt.ic.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by luoyifan on 2017/11/21.
 */
@RestController
public class RootController {

    @RequestMapping(value = "/ok", method = RequestMethod.GET)
    public String ok() {
        return "ok";
    }

    @RequestMapping(value = {"/", "/index.htm"}, method = RequestMethod.GET)
    public ModelAndView index() {
        return new ModelAndView("/index.ftl");
    }
}
